package com.itcast.springboot.mapper;

import com.itcast.springboot.bean.Admin;
import com.itcast.springboot.bean.Feedback;
import com.itcast.springboot.bean.UserDyna;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FeedbackMapper {
    //增
    public Integer insertFeedback(Feedback feedback);

    //通过isRead和isSolve自定义规则删除信息
    public Integer deleteFeedbackTrim(Integer isRead, Integer isSolve);
    //根据id删除
    public Integer deleteFeedbackById(Integer fbid);

    //自定义规则isRead和isSolve查询信息
    public List<Feedback> getFeedbackSolvesTrim(Integer isRead, Integer isSolve);

    //修改isRead和isSolve状态：未读改为已读、已读改为已解决
    public Integer updateFeedback(Feedback feedback);
}
